package com.arpa.wms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 库存状态
 * </p>
 *
 * @author LEO
 * @since 2020-08-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="InventoryStatus对象", description="库存状态")
@TableName("wms_inventory_status")
public class InventoryStatus extends BasicEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据标识")
    @TableField("code")
    private String code;

    @ApiModelProperty(value = "所属机构")
    @TableField("group_code")
    private String groupCode;

    @ApiModelProperty(value = "所属货主")
    @TableField("shipment_code")
    private String shipmentCode;

    @ApiModelProperty(value = "所属货主")
    @TableField("shipment_name")
    private String shipmentName;

    @ApiModelProperty(value = "状态名称")
    @Length(max = 100, message = "状态名称长度不能大于100个字符", groups = {Save.class})
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "是否可发货;0：是；1：否；")
    @TableField("is_consignment")
    private String isConsignment;

    @ApiModelProperty(value = "备注")
    @Length(max = 100, message = "备注长度不能大于100个字符", groups = {Save.class, Update.class})
    @TableField("remarks")
    private String remarks;

    @ApiModelProperty(value = "状态   0启用 1停用")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "是否可删除标识")
    @TableField("delete_flag")
    private String deleteFlag;
    @ApiModelProperty(value = "启用停用")
    @TableField("usings")
    private String usings;

    public interface Save{}
    public interface Update{}

}
